EXIT

Syntax: EXIT loop_variable    (FOR loops)     
    or: EXIT loop_name        (REPeat loops)
    or: EXIT    (SMS only)
Location: QL ROM

Using the first two variants of this command, the specified loop (either a FOR or a REPeat structure) will be finished and the program will jump to the first statement after the relative END FOR loop_variable or END REPeat loop_name.

The third variant only exists under SMS and will force the interpreter to jump out of the current loop being executed, whether it is a FOR loop or a REPeat loop - the interpreter will just search the program for the next END REPeat or END FOR statement.

CROSS-REFERENCE:
Please see FOR and REPeat for more details.
